package com.quick.config;

import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import lombok.Data;

@Configurable
@Data
@ConfigurationProperties(prefix = QuickLockProperties.PREFIX, ignoreUnknownFields = false)
@Component
public class QuickLockProperties {
	public static final String PREFIX = "spring.quick.lock";
	private String protocol = "redis://";
	 private String host = "127.0.0.1";
	 private Integer port = 6379;
	 private String password;
	 private int database;
}
